package io.renren.modules.tag.utils;


import com.baomidou.mybatisplus.annotation.EnumValue;

public class Constant {

    public enum CategoryEnum {
        SCOPE("scope","作用域"),
        BUSINESS("business","业务域"),
        ADMIN("admin","管理域");

        @EnumValue
        private String name;
        private String value;

        CategoryEnum(String value,String name) {
            this.value=value;
            this.name = name;
        }

        public String getName() {
            return name;
        }
        public String getValue() {
            return value;
        }

    }

    public enum TagTypeEnum {

        PROPER("proper","属性"),
        BEHAVIOR("behavior","行为");
        @EnumValue
        private String name;
        private String value;

        TagTypeEnum(String value,String name) {
            this.value=value;
            this.name = name;
        }

        public String getName() {
            return name;
        }

    }

    public enum ValueTypeEnum {

        PERCENT("percent","百分比"),
        TOTAL("total","总次数");


        private String value;
        @EnumValue
        private String name;

        ValueTypeEnum(String value,String name) {
            this.value=value;
            this.name = name;
        }

        public String getName() {
            return name;
        }

    }

    public enum FirstOrLastEnum {

        FIRST("首次"),
        LAST("末次");

        @EnumValue
        private String desc;

        FirstOrLastEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum RelationEnum {
        GT("大于"),
        LT("小于"),
        GE("大于等于"),
        LE("小于等于"),
        EQ("等于"),
        NE("不等于");

        @EnumValue
        private String desc;

        RelationEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
    public enum DataTypeEnum {
        STRING("字符串"),
        INTEGER("整数"),
        FLOAT("浮点数"),
        BOOLEAN("布尔值"),
        DATETIME("日期"),
        DATE("时间");

        @EnumValue
        private String desc;

        DataTypeEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
    public enum RulseCategoryEnum {
        CUSTOM("自定义标签值"),
        BASIC("基础指标值"),
        BEHAVIOR("行为结果分布"),
        FIRSTORLAST("首末次特征"),
        PREFERENCE("事件偏好属性");
        @EnumValue
        private String desc;

        RulseCategoryEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    public static void main(String[] args) {
        for (DataTypeEnum c : DataTypeEnum.values()) {
            System.out.println(c);
        }
    }

}
